using System;
using System.Collections;
using CE.Database;
/// <summary>
/// Summary description for UserProfileDB
/// </summary>
/// 
namespace CE.User
{
    public class UserSIRDB
    {
        public UserSIRDB()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public Int64 Insert(UserSIR usersir)
        {
            MyDatabase _db = new MyDatabase();
            Int64 _result = -1;
            string _spName = "[sprocSIRInsertUpdateSingleItem]";

            SortedList _sPara = new SortedList();

            #region Parameter
            _sPara.Add("@SIRID", usersir.SIRID);
            _sPara.Add("@FullName", usersir.FullName);
            _sPara.Add("@Email", usersir.Email);
            _sPara.Add("@CarRenewalMonth", usersir.CarRenewalMonth);
            _sPara.Add("@PARenewalMonth", usersir.PARenewalMonth);
            _sPara.Add("@MedicalRenewalMonth", usersir.MedicalRenewalMonth);
            _sPara.Add("@Status", usersir.Status);
            #endregion

            _result = _db.ExecuteSP(_spName, _sPara);

            return _result;
        }

        public bool Update()
        {
            return true;
        }

        public bool Delete()
        {
            return true;
        }

    }
}